global class Cald_NewClaim {
	static Callidus_Claim__c claimObj = null;
	Webservice static Callidus_Claim__c createClaim(ID oppId)
	{
		Opportunity[] oppList = [select Amount from Opportunity where id = :oppId];
		claimObj = new Callidus_Claim__c(Claim_Status__c = 'Draft', Opportunity__c = oppId, Credit__c = oppList[0].Amount);
		insert claimObj;
		return claimObj;
	}
}